﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="activeadd.aspx.cs" Inherits="UI.system.page.active.activeadd" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="Common" %>
<div style="margin: 15px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label"><font>活动名称</font><em>*</em></label>
			<div class="layui-input-block">
                <input type="text" name="name" placeholder="请输入活动名称" lay-verify="required" autocomplete="off" class="layui-input" value="<%=info.Name %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label">活动图片</label>
			<div class="layui-input-inline">
				<div id="upload_products" class='upload_product <%=string.IsNullOrEmpty(info.Img)?"":"hidden" %>'><div id="upload_img"></div></div>
                 <div id="upload_show" class='upload_show <%=string.IsNullOrEmpty(info.Img)?"hidden":"" %>'>
                     <div id="img_container" class="img_container" src="<%=info.Img %>"><img src="<%=info.Img %>"/></div>
                     <div class="reupload"><a href="javascript:Re_Upload()">重传</a></div>
                 </div> <div style="float:left; color:red; padding-top:5px; font-size:12px; padding-left:10px;"></div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><font>活动内容</font></label>
			<div class="layui-input-block">
				<textarea name="context" class="layui-textarea" placeholder="请输入活动内容" rows="4"><%=info.Context %></textarea>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>领奖方式</font><em>*</em></label>
			<div class="layui-input-block">
				<select id="position" name="prizetype" lay-verify="required" lay-filter="sendtype">
					 <option value="1" <%=info.PrizeType==1?"selected":"" %>>无需传播，直接领奖</option>
                     <option value="2" <%=info.PrizeType==2?"selected":"" %>>分享活动详情后领奖</option>
                     <option value="3" <%=info.PrizeType==3?"selected":"" %>>读取语音文字后领奖</option>
                     <option value="4" <%=info.PrizeType==4?"selected":"" %>>积攒领奖</option>
                     <option value="5" <%=info.PrizeType==5?"selected":"" %>>分享领奖</option>
				</select>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>结束图提醒</font></label>
			<div class="layui-input-block">
				<input type="radio" name="showover" lay-filter="showover" value="0" title="不提醒" <%=info.ShowOver==0?"checked='checked'":"" %> />
                <input type="radio" name="showover" lay-filter="showover" value="1" title="提醒" <%=info.ShowOver==1?"checked='checked'":"" %> />
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>点击量</font><em>*</em></label>
			<div class="layui-input-block">
				<input type="text" name="clickcount" placeholder="请输入点击量" lay-verify="required" autocomplete="off" class="layui-input" value='<%=info.ClickCount %>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>分享次数</font><em>*</em></label>
			<div class="layui-input-block">
				<input type="text" name="sharecount" placeholder="请输入分享次数" lay-verify="required" autocomplete="off" class="layui-input" value='<%=info.ShareCount %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>链接</font></label>
			<div class="layui-input-block">
				<input type="text" name="link" placeholder="请输入链接"  autocomplete="off" class="layui-input" value='<%=info.Link %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>手机号</font></label>
			<div class="layui-input-block">
				<input type="text" name="mobile" placeholder="请输入手机号"  autocomplete="off" class="layui-input" value='<%=info.Mobile %>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>已领数量</font></label>
			<div class="layui-input-block">
				<input type="text" name="takecount" placeholder="请输入已领数量"  autocomplete="off" class="layui-input" value='<%=info.TakeCount %>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>已领金额</font></label>
			<div class="layui-input-block">
				<input type="text" name="takemoney" placeholder="请输入已领金额"  autocomplete="off" class="layui-input" value='<%=info.TakeMoney %>'>
			</div>
		</div>
		<a lay-filter="save" lay-submit style="display: none;"></a>
	</form>
</div>